{{ form_start(form, {'action': path('task_new'), 'method':'POST'}) }}
    {{ form_errors(form) }}

    <div>
        {{ form_label(form.task, "Task Name") }}
        {{ form_errors(form.task) }}
        {{ form_widget(form.task, {'attr': {'class': 'task_field'}}) }}
    </div>

    <div>
        {{ form_label(form.dueDate, "Due Date") }}
        {{ form_errors(form.dueDate) }}
        {{ form_widget(form.dueDate) }}
    </div>

    <div>
        {{ form_widget(form.save) }}
    </div>

{{ form_end(form) }}


<hr>
{{ form.task.vars.id }}
{{ form.task.vars.full_name }}



{#
    {{ form(form, {'attr': {'novalidate': 'novalidate'}}) }}
    {{ form_start(form) }}
    {{ form_widget(form) }}
    {{ form_end(form) }}
#}


{#
    {{ form_start(form) }}
        {{ form_errors(form) }}
        {{ form_row(form.task) }}
        {{ form_row(form.dueDate) }}
    {{ form_end(form) }}


    <hr>

    {{ form.vars.value.task }}
#}



